package com.mm.cloud.sys.dto.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 用户角色设置
 *
 * @author mr
 * @since 2021-11-26
 */
@Data
@Schema(description = "用户角色设置")
public class UserToRoleDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "角色IDS，英文逗号隔开")
    private String roleIds;
}
